﻿using System.Web.Http;

namespace Clustering.MultidimensionalScaling.Web.UI.App_Start
{
    public static class WebApiConfig
    {
        public static void Register(HttpConfiguration config)
        {
            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new
                    {
                        id = RouteParameter.Optional
                    }
                );

            config.Routes.MapHttpRoute(
                name: "DefaultPromoteActionApi",
                routeTemplate: "api/{controller}/{id}/{action}",
                defaults: new {action = "Content"}
                );
        }
    }
}